package fanshe6;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) throws Exception {

//        System.out.println("JdbcTools.getConnection() = " + JdbcTools.getConnection());
//        JdbcTools.update("update student set name=?,age=? where major=?","cc",11,"美术");
//        JdbcTools.select("select * from student");
//        student hh = JdbcTools.queryBean("select * from student ", student.class,"ee");
//        System.out.println(hh);
//        List<student> select = JdbcTools.select("select * from student ", student.class);
//        System.out.println("select = " + select);
//        ArrayList<Map> maps = JdbcTools.queryMapList("select * from student ","男");
//        System.out.println("maps = " + maps);
//        Object[] aas = JdbcTools.queryArray("select * from student where name=?", "aa");
//        System.out.println("Arrays.toString(aas) = " + Arrays.toString(aas));
//        Object[] aas = JdbcTools.queryArray("select * from student ");
//        System.out.println("Arrays.toString(aas) = " + Arrays.toString(aas));
//        List<Object[]> objects = JdbcTools.queryArray1("select * from student");
//        for (int i = 0; i <objects.size() ; i++) {
////            System.out.println(Arrays.toString(objects.get(i)));
////        }
//        Map<String, Object> bb = JdbcTools.queryMap1("select * from student");
//        System.out.println("bb = " + bb);

    }
}
